<%@ page contentType="text/html;charset=utf8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD id=Head1>
<TITLE>新增博客</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf8">
<LINK href="YHChannelApply.files/Style.css" type=text/css rel=stylesheet>
<LINK href="YHChannelApply.files/Manage.css" type=text/css
	rel=stylesheet>
<SCRIPT language=javascript src="YHChannelApply.files/FrameDiv.js"></SCRIPT>
<SCRIPT language=javascript src="YHChannelApply.files/Common.js"></SCRIPT>
<!-- ---------开始设置kindeitor ------------ -->
<script charset="utf-8" src="editor/kindeditor.js"></script>
<script charset="utf-8" src="editor/lang/zh_CN.js"></script>
<script charset="utf-8" src="editor/kindEditorReady.js"></script>
<script>
	KindEditor.ready(function(K) {
		window.editor = K.create('#editor_id');
	});
	var options = {
		cssPath : '/css/index.css',
		filterMode : true
	};
	var editor = K.create('textarea[name="message"]', options);//此处message为<textarea class=textbox id="editor_id" name=message></textarea>
	// 取得HTML内容
	html = editor.html();
	// 同步数据后可以直接取得textarea的value
	editor.sync();
	html = document.getElementById('editor_id').value; // 此处editor_id为<textarea class=textbox id="editor_id" name=message></textarea>
	html = K('#editor_id').val(); // KindEditor Node API
	html = $('#editor_id').val(); // jQuery
	// 设置HTML内容
	editor.html('HTML内容');
	// 关闭过滤模式，保留所有标签
	KindEditor.options.filterMode = false;
	KindEditor.ready(function(K) {
		K.create('#editor_id');
	});
</script>
<!-- ---------结束设置kindeitor------------ -->
</HEAD>
<BODY>
	<FORM id=form1 name=form1
		action="${pageContext.request.contextPath}/manager/BlogServlet?op=addBlog"
		method=post enctype="multipart/form-data">
		<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
			<TR>
				<TD width=15><IMG src="YHChannelApply.files/new_019.jpg"
					border=0></TD>
				<TD width="100%" background=YHChannelApply.files/new_020.jpg
					height=20></TD>
				<TD width=15><IMG src="YHChannelApply.files/new_021.jpg"
					border=0></TD>
			</TR>
		</TABLE>
		<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
			<TR>
				<TD width=15 background=YHChannelApply.files/new_022.jpg><IMG
					src="YHChannelApply.files/new_022.jpg" border=0></TD>
				<TD vAlign=top width="100%" bgColor=#ffffff>
					<TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
						<TR>
							<TD class=manageHead>当前位置：博客管理 &gt; 新增博客</TD>
						</TR>
						<TR>
							<TD height=2></TD>
						</TR>
					</TABLE>
					<TABLE borderColor=#cccccc cellSpacing=0 cellPadding=0 width="100%"
						align=center border=0>
						<TR>
							<TD>
								<TABLE cellSpacing=0 cellPadding=2 border=0>
									<TR>
										<TD align=right style="WIDTH: 120px">&nbsp;</TD>
										<TD><font color="red"><%=request.getAttribute("msg") != null ? request.getAttribute("msg") : ""%></font></TD>
									</TR>
									<TR>
										<TD align=right style="WIDTH: 120px">博客分类：</TD>
										<TD><SELECT name=type>
												<OPTION value="Java技术" selected>Java技术</OPTION>
												<OPTION value="HTML5技术">HTML5技术</OPTION>
												<OPTION value="Python技术">Python技术</OPTION>
										</SELECT></TD>
									</TR>
									<TR>
										<TD align=right>标题：</TD>
										<TD><INPUT class=textbox style="WIDTH: 300px"
											maxLength=50 name=title></TD>
									</TR>
									<TR>
										<TD align=right>图片：</TD>
										<TD><INPUT type="file" class=textbox
											style="WIDTH: 300px; height: 20px;" name="pic"></TD>
									</TR>
									<TR>
										<TD align=right>内容：</TD>
										<TD><textarea class=textbox id="editor_id" name=message
												style="width: 510px; height: 500px;">                
                    </textarea></TD>
									</TR>
									<TR height=25>
										<TD style="WIDTH: 120px"></TD>
										<TD align=left><INPUT class=button type=submit value=提交>
											<INPUT class=button type=reset value=清空></TD>
									</TR>
								</TABLE>
							</TD>
						</TR>
					</TABLE>
				</TD>
				<TD width=15 background=YHChannelApply.files/new_023.jpg><IMG
					src="YHChannelApply.files/new_023.jpg" border=0></TD>
			</TR>
		</TABLE>
		<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
			<TR>
				<TD width=15><IMG src="YHChannelApply.files/new_024.jpg"
					border=0></TD>
				<TD align=middle width="100%"
					background=YHChannelApply.files/new_025.jpg height=15></TD>
				<TD width=15><IMG src="YHChannelApply.files/new_026.jpg"
					border=0></TD>
			</TR>
		</TABLE>
	</FORM>
</BODY>
</HTML>
